import {trimSpace} from '../utils/tool';
export default($)=>{
    const $headerSearch = $('.J_headerSearch'),
          $searchInput = $headerSearch.children('input'),
          $searchBtn = $headerSearch.children('button');
    const init = () =>{
        bindEvent();
    }      
    function bindEvent(){
        $searchBtn.on('click',onSearchAction)
    }
    function onSearchAction(){
        const val = trimSpace($searchInput.val());
        if(val.length === 0){
            return
        }
    }
}